a typical kind of property that you might want to express, say, in a class invariant for a graph class, is that the graph has no cycles 比如在一個圖類中,你可能想要表述的典型屬性是該圖沒有回路。
it's typical that class invariants define properties that indicate how the various constituents of the class, such as balance and deposit / withdrawal lists, maintain consistency with each other 這個典型例子表明:類不變式定義屬性,該屬性指明類的可變要素(如余額和存儲/支取清單)如何維護彼此一致性。
it \'s typical that class invariants \ r \ ndefine properties that indicate how the various constituents of the \ r \ nclass, such as balance and deposit / withdrawal lists, maintain \ r \ nconsistency with each other 這個典型例子表明:類不變式定義屬性,該屬性指明類的可變要素(如余額和存儲/支取清單)如何維護彼此一致性。
for example, if you have a bank account class with a field that represents the current balance and a field that contains a list of all deposits and withdrawals since the opening of the account, then you would have a class invariant that states that the value of the balance field is equal to the total of all the deposit values so far minus the total of all the withdrawal values so far 例如,你有一個銀行帳戶類,它包含一個表示當前余額的字段和一個包含帳戶自開通以來所有儲蓄和支取清單的字段,那么你也應(yīng)該有一個類不變式表明余額字段的值與累計儲蓄和累計支取之差相一致。
invariant: adj. 不變的,無變度的;一定的,恒定的。 n. 【數(shù)學(xué)】不變式;不變量。 n. -iance invariant invariant: 不變式a class: 甲級; 種類:在某一分類系統(tǒng)中特別定義的部分a-class: 也未必是at class: 在班上/家里/圖書館/公be in the class: 在教室class: n. 1.階級;社會等級。 2.學(xué)級;班級,年級,級,班;組;(有組織的)講習班;〔美國〕同年畢業(yè)班;【軍事】同年入伍士兵。 3.(高低、優(yōu)劣的)等級;類別。 4.〔英大學(xué)〕(榮譽考試)優(yōu)等;〔俚語〕高級,優(yōu)秀;漂亮,優(yōu)雅。 5.【生物學(xué)】(分類學(xué)的)綱;【礦物】晶族。 6.(一節(jié))課。 the working class工人階級。 No class today. 今天沒課。 C- is over. 下課。 boycott classes 罷課。 the first [second] class頭[二]等。 high [low] class高[低]級。 There's a good deal of class about him. 他有很多優(yōu)點。 He is not class enough. 他沒有什么了不起。 at the top of one's class 出類拔萃;居首要位置。 be no class 〔俚語〕不足道;無價值。 class of the field 〔美國〕比賽的優(yōu)勝候補人。 get a class=obtain a class. in a class by itself 特好,出眾。 in class在上課中。 in the same class 〔美國〕同一類型的,同等的。 no class 〔俚語〕等外的,極壞的,蹩腳的〔用作表語〕。 not in the same class with 不能同…相比,無法和…相提并論,比不上…。 obtain a class=take a class 畢業(yè)考試得優(yōu)等。 take a class at (Oxford) 在(牛津大學(xué))進榮譽班。 take a class of (beginners) 擔任(初級)班(的教師)。 take classes in (history) 聽(歷史)課,選修(歷史)課程。 the classes 上層社會;知識階級。 the classes and masses 各階級和各階層。 vt. 把…分類,把…分等[分級];給…定等級,把…分組。 vi. 屬于…類[等、級、組]。 adj. -able 可分類[等級]的。 adj. -less 無階級的。 class a: 甲類class no: 危險品等級in class: 不上課, 在課堂上; 課上;上課時; 上課中; 在課上; 在課堂上,在上課; 在課堂中; 在上課in the class: 上課中; 在班上s class: 以提供the class: 三年二班with class: 口語用,兩層含義。第一,指把事情做的卓越,優(yōu)秀,漂亮,讓人欽佩沒話說。第二,人有品位有修養(yǎng),漂亮。abbe invariant: 阿貝不變量absolute invariant: 絕對不變量adiabatic invariant: 緩漸不變量; 浸漸不變量; 絕熱不變量; 絕熱式不變量algebraic invariant: 代數(shù)不變式almost invariant: 殆不變式arithmetic invariant: 算術(shù)不變數(shù)arithmetical invariant: 算術(shù)不變量basic invariant: 基本不變式bilaterally invariant: 雙側(cè)不變式binary invariant: 二元不變式birational invariant: 雙有理不變量
class invariant перевод:инвариант класса (утверждение (assertion), которое должно быть истинным при создании каждого экземпляра объекта класса и сохранять свое значение в течение всего времени жизни объекта)